package com.blrs.service.product.impl;

import java.util.List;

import com.blrs.service.product.IProductReceptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.ProductReceptionMapper;
import com.blrs.domain.ProductReception;

/**
 * 产品接收Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-10
 */
@Service
public class ProductReceptionServiceImpl implements IProductReceptionService
{
    @Autowired
    private ProductReceptionMapper productReceptionMapper;

    /**
     * 查询产品接收
     * 
     * @param productId 产品接收主键
     * @return 产品接收
     */
    @Override
    public ProductReception selectProductReceptionByProductId(String productId)
    {
        return productReceptionMapper.selectProductReceptionByProductId(productId);
    }

    /**
     * 查询产品接收列表
     * 
     * @param productReception 产品接收
     * @return 产品接收
     */
    @Override
    public List<ProductReception> selectProductReceptionList(ProductReception productReception)
    {
        return productReceptionMapper.selectProductReceptionList(productReception);
    }

    /**
     * 新增产品接收
     * 
     * @param productReception 产品接收
     * @return 结果
     */
    @Override
    public int insertProductReception(ProductReception productReception)
    {
        return productReceptionMapper.insertProductReception(productReception);
    }

    /**
     * 修改产品接收
     * 
     * @param productReception 产品接收
     * @return 结果
     */
    @Override
    public int updateProductReception(ProductReception productReception)
    {
        return productReceptionMapper.updateProductReception(productReception);
    }

    /**
     * 批量删除产品接收
     * 
     * @param productIds 需要删除的产品接收主键
     * @return 结果
     */
    @Override
    public int deleteProductReceptionByProductIds(String[] productIds)
    {
        return productReceptionMapper.deleteProductReceptionByProductIds(productIds);
    }

    /**
     * 删除产品接收信息
     * 
     * @param productId 产品接收主键
     * @return 结果
     */
    @Override
    public int deleteProductReceptionByProductId(String productId)
    {
        return productReceptionMapper.deleteProductReceptionByProductId(productId);
    }
}
